package com.upup.train_management.repository;

import com.upup.train_management.entity.Station;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface StationRepository extends JpaRepository<Station, Long> {
    Station findByStationName(String stationName);
    Station findByStationCode(String stationCode);

    List<Station> findByCityName(String cityName);

    List<Station> findByProvinceName(String provinceName);
}
